//
//  TMDWBTempViewController.swift
//  TMDWeiBo
//
//  Created by 汤明鼎 on 2017/1/17.
//  Copyright © 2017年 heimaitcast. All rights reserved.
//

import UIKit

class TMDWBTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        //设置导航栏
        
        title = "第个\(navigationController?.childViewControllers.count ?? 0)控制器"
        
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageNamed:nil, title:"PUSH", target:self, action:#selector(rightClick))
    }

}

extension TMDWBTempViewController{

    @objc fileprivate func rightClick(){
    
        let tempVC = TMDWBTempViewController()
        navigationController?.pushViewController(tempVC, animated: true)
    }
}
